<?php

/**
 * Template for generating div
 * with one comment
 * 
 */
class tplComment extends \StudyBuddy\Template\Template
{

	protected static $vars = array(
	'_id' => '', //1
	'b' => '', //2
	'ts' => '', //3
	'username' => '', //4
	'i_uid' => '', //5
	't' => '', //6
	'i_prnt' => 0, //7
	'b_owner' => '', //8
	'edit_delete' => '', //9
	'i_likes' => '', // 10
	'e' => '', //11
	'owner_id' => '0', //12
	'resource_id' => '0', //13
	's_inreply' => '', //14
	'reply' => 'Reply', //15
	'reply_t' => 'Reply to this comment' //16
	);


	protected static $tpl = '
	<div class="fl cb com_wrap reply-%7$s" id="comment-%1$s">
	    <a name="c%1$s"></a>
		<div class="com_1 fl cb1">
			<div class="fl com_left">
				<div class="fr com_like votebtns">
					<a id="c_like_%1$s" title="I Like this comment!" class="ajax ttt thumbup c_like" href="#">Good</a>
				</div>
				<div class="c_likes fr">%10$s</div>
			</div>
			<div class="fl">
			%14$s
			<div class="fl cb com_b">%2$s</div>
			</div>
		</div>
		<div class="com_i fl cb1">
			<div class="fl mt10 com_flag">
				<span class="ico ttt flag ajax" id="cflag_%1$s" title="Flag this comment">flag</span>
			</div>
			<div class="com_tools controls uid-%5$s" id="res_%1$s">
				<div class="com_auth usr usr_%5$s fl"><a href="/users/%5$s/" class="iu usr-%5$s commentor%8$s">%4$s</a></div>	
				<div title="%3$s" class="com_ts ts fl">%6$s</div>
				%11$s
				%9$s		
			</div>	
			<div class="fr mt10 com_reply"><span class="ico comment fl">&nbsp;</span><a href="#" title="%16$s" class="ttt com_reply_link ajax uid-%12$s" id="comrepl_%1$s">%15$s</a></div>
		</div>
	</div>';
}
